<?php

declare(strict_types=1);

namespace App\Dao;

use App\Model\AuthRolePermission;

class AuthRolePermissionDao
{
    use RbacTrait;
    use DaoTrait;

    public function __construct()
    {
        $this->driver = __CLASS__;
    }

    public function deleteRolePermissionByIds(array $role_ids)
    {
        return AuthRolePermission::query()->whereIn('role_id',$role_ids)->delete();
    }

}